RETRIEVE SMS stats- C#

To retrieve SMS stats, use the following code:

var client = new PayliteMessaging.Client.MessagingClient();

 

var response = client.GetSmsStats(new GetMessageDetailsModel

{

ApiKey = "Your API Key",

StartDate = DateTime.Now.AddDays(-29),

EndDate = DateTime.Now

});